package pojo;

import java.util.Date;

public class User {
	private Integer id;
	private String uname;
	private double sal;
	private Date birth;
	private boolean sex;
	
	public User() {
		super();
	}
	
	
	public User(String uname, double sal, Date birth, boolean sex) {
		super();
		this.uname = uname;
		this.sal = sal;
		this.birth = birth;
		this.sex = sex;
	}


	public User(Integer id, String uname, double sal, Date birth, boolean sex) {
		super();
		this.id = id;
		this.uname = uname;
		this.sal = sal;
		this.birth = birth;
		this.sex = sex;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public double getSal() {
		return sal;
	}
	public void setSal(double sal) {
		this.sal = sal;
	}
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}


	@Override
	public String toString() {
		return "User [id=" + id + ", uname=" + uname + ", sal=" + sal
				+ ", birth=" + birth + ", sex=" + sex + "]";
	}
	
	
}
